﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NavigationMge.aspx.cs" Inherits="Admin_NavigationMge" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../CssFile/adminStyle.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="mgebox">
        <div class="mgenav"><a href="NavigationAdd.aspx?type=p">添加父级导航</a>&nbsp;|&nbsp;<a href="NavigationAdd.aspx?type=s">添加子级导航</a>|&nbsp;<a href="NavigationMge.aspx">管理</a></div>
        <div class="listbox">
            <asp:Repeater ID="rptNavigation" runat="server" 
                onitemcommand="rptNavigation_ItemCommand">
                <HeaderTemplate>
                    <ul class="listheader">
                        <li style="width:50px;">分类ID</li>
                        <li style="width:150px;">分类名称</li>
                        <li style="width:150px;">父分类名称</li>
                        <li style="width:250px;">分类描述</li>
                        <li style="width:100px;">操作</li>
                    </ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <ul class="listcontent">
                        <li style="width:50px;"><%# Eval("AlbumId")%></li>
                        <li style="width:150px;"><%# Eval("AlbumName")%></li>
                        <li style="width:150px;"><%# Eval("PAlbumInfo.AlbumId")%></li>
                        <li style="width:250px;"><%# Eval("Describe")%></li>
                        <li style="width:100px;"><a href='NavigationAdd.aspx?id=<%# Eval("AlbumId") %>'>修改</a>&nbsp;<asp:LinkButton id="lbtnDelete" runat="server" CommandName="delete" CommandArgument='<%# Eval("AlbumId") %>' Text="删除" OnClientClick="return confirm('确认要删除该项吗？');"></asp:LinkButton></li>
                    </ul>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <ul class="listcontent odd">
                        <li style="width:50px;"><%# Eval("AlbumId")%></li>
                        <li style="width:150px;"><%# Eval("AlbumName")%></li>
                        <li style="width:150px;"><%# Eval("PAlbumInfo.AlbumId")%></li>
                        <li style="width:250px;"><%# Eval("Describe")%></li>
                        <li style="width:100px;"><a href='NavigationAdd.aspx?id=<%# Eval("AlbumId") %>'>修改</a>&nbsp;<asp:LinkButton id="lbtnDelete" runat="server" CommandName="delete" CommandArgument='<%# Eval("AlbumId") %>' Text="删除" OnClientClick="return confirm('确认要删除该项吗？');"></asp:LinkButton></li>
                    </ul>
                </AlternatingItemTemplate>
            </asp:Repeater>
            <div class="page">
            <webdiyer:AspNetPager ID="anpList" runat="server" ShowPageIndexBox="always" FirstPageText="首页" LastPageText="尾页"
                            NextPageText="下一页" PrevPageText="上一页" ShowPageIndex="False" ShowInputBox="Always"
                            TextAfterInputBox="页" TextBeforeInputBox="转到" SubmitButtonText="Go"
                    onpagechanged="anpList_PageChanged"></webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
